package com.ossjk.oa.accounting.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ossjk.core.base.entity.BaseEntity;

/**
 * <p>
 * 
 * </p>
 *
 * @author chair
 * @since 2020-05-14
 */
@TableName("cw_receivables")
public class CwReceivables extends BaseEntity<CwReceivables> {

    private static final long serialVersionUID = 1L;

//    @TableId("id")
//    private String id;
    /**
     * 应收时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @JSONField(format = "yyyy-MM-dd")
    @TableField("needrecDate")
    private Date needrecDate;
    /**
     * 实际收取时间
     */
    @JSONField(format = "yyyy-MM-dd")
    @TableField("actecDate")
    private Date actecDate;
    /**
     * 结束待收状态的操作人
     */
    @TableField("recemp")
    private String recemp;
    /**
     * 支出ID
     */
    @TableField("payid")
    private String payid;
    /**
     * 收款ID
     */
    @TableField("recid")
    private String recid;
    /**
     * 描述
     */
    @TableField("descb")
    private String descb;
    /**
     * 状态[0：待收，1,:已收，2.部分收取；3，坏账]
     */
    @TableField("flag")
    private Integer flag;


    @TableField("receivables")
    private BigDecimal receivables;
    @TableField("received")
    private BigDecimal received;

    public BigDecimal getReceivables() {
        return receivables;
    }

    public void setReceivables(BigDecimal receivables) {
        this.receivables = receivables;
    }

    public BigDecimal getReceived() {
        return received;
    }

    public void setReceived(BigDecimal received) {
        this.received = received;
    }
    /**
     * 状态 1-业务数据、2-系统数据
     */
//    @TableField("state")
//    private BigDecimal state;
    /**
     * 逻辑删除 1-未删除、2-已删除
     */
//    @TableField("isdelete")
//    private BigDecimal isdelete;

//
//    public String getId() {
//        return id;
//    }
//
//    public void setId(String id) {
//        this.id = id;
//    }

    public Date getNeedrecDate() {
        return needrecDate;
    }

    public void setNeedrecDate(Date needrecDate) {
        this.needrecDate = needrecDate;
    }

    public Date getActecDate() {
        return actecDate;
    }

    public void setActecDate(Date actecDate) {
        this.actecDate = actecDate;
    }

    public String getRecemp() {
        return recemp;
    }

    public void setRecemp(String recemp) {
        this.recemp = recemp;
    }

    public String getPayid() {
        return payid;
    }

    public void setPayid(String payid) {
        this.payid = payid;
    }

    public String getRecid() {
        return recid;
    }

    public void setRecid(String recid) {
        this.recid = recid;
    }

    public String getDescb() {
        return descb;
    }

    public void setDescb(String descb) {
        this.descb = descb;
    }

    public Integer getFlag() {
        return flag;
    }

    public void setFlag(Integer flag) {
        this.flag = flag;
    }

//    public BigDecimal getState() {
//        return state;
//    }
//
//    public void setState(BigDecimal state) {
//        this.state = state;
//    }
//
//    public BigDecimal getIsdelete() {
//        return isdelete;
//    }
//
//    public void setIsdelete(BigDecimal isdelete) {
//        this.isdelete = isdelete;
//    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "CwReceivables{" +
        ", id=" + id +
        ", needrecDate=" + needrecDate +
        ", actecDate=" + actecDate +
        ", recemp=" + recemp +
        ", payid=" + payid +
        ", recid=" + recid +
        ", descb=" + descb +
        ", flag=" + flag +
        ", state=" + state +
        ", isdelete=" + isdelete +
        "}";
    }
}
